import { RouteRecordRaw, RouterView } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/algo-dev',
    component: RouterView,
    meta: { title: '算法开发' },
    redirect: '/algo-dev/notebook/list',
    children: [
      {
        path: '/algo-dev/notebook/list',
        component: () => import('@/views/online-lab/algo-dev/notebook/list/index.vue')
      },
      {
        path: '/algo-dev/notebook/add',
        component: () => import('@/views/online-lab/algo-dev/notebook/add/index.vue')
      },
      {
        path: '/algo-dev/algo-manage/list',
        component: () => import('@/views/online-lab/algo-dev/algo-manage/list/index.vue')
      },
      {
        path: '/algo-dev/training-mission/:id',
        component: () => import('@/views/online-lab/algo-dev/training-mission/index.vue')
      },
      {
        path: '/algo-dev/algo-manage/add',
        component: () => import('@/views/online-lab/algo-dev/algo-manage/edit/index.vue')
      },
      {
        path: '/algo-dev/algo-manage/edit/:id',
        component: () => import('@/views/online-lab/algo-dev/algo-manage/edit/index.vue')
      }
    ]
  }
]

export default routes
